#ifndef PCI_H
#define PCI_H

#include <stdint.h>

#define BUS_COUNT 256
#define DEV_COUNT 32
#define FUN_COUNT 8
#define CONFIG_ADDR 0xCF8
#define CONFIG_DATA 0xCFC

typedef struct {
    uint8_t bus, dev, func;
    uint16_t vendor, device;
    uint8_t class_code, sub_class, proif;
    uint32_t bar[6];
} pci_dev_t;

void pci_enumerate();

#endif 
